<?php
namespace Lib\Db;

class DbFactory
{
    public static function getDb($config)
    {
        if (defined('ENV') && ENV == 'test') {
            return new DbMysql($config);
        } else {
            return new DbProxy($config);
        }
    }
}
